var express = require('express');
var router = express.Router();

/* GET users listing. */
router.get('/', function(req, res, next) {
  if(req.session && req.session['username'])
    res.send(req.session['username']);
  else{
    res.send('0');  
  }
});

module.exports = router;
